import asyncio
import time

from BinanceStrategy.BinanceStrategyInit import BinanceStrategyInit

var1 = BinanceStrategyInit(UID=75, APIKey="CZKNe3cZNvlyqdiOKvzBfAK8MLs3D3ymDAVx2ZAdG3Cu9Niue78DL7ti0a7cVZ6M",
                          SecretKey="h93l17wBQgXSa8oDVNMRQL6kXrlrueZ6SsXcF0pfSMihTfNziBmJrrUutISHj9a7",
                          symbol="ETCUSDT")

var2 = BinanceStrategyInit(UID=74, APIKey="4tfWhv7PCNZ3UyXp3221SItHY5gmeOPH7Lx6cys0oqQbpRArfg9qTaJcFpFLfblU",
                          SecretKey="XxIqAdguElnJ28WfswgIgx15O7rz5rsFA5jMYMDYS58CA6BJ8MLxPC202jMObUUC",
                          symbol="ETCUSDT")

var3 = BinanceStrategyInit(UID=77, APIKey="0cahChOalMdHDLLUEH0jAHYK5W2HMBby1sYYborkIQR8Nz7pISFxbcR5zTjnxTto",
                          SecretKey="q0K15akF2ETukaDtgfrcVowioQJg41BWXuGumORc4NcMs7oGckzvoAPmuGDwopHx",
                          symbol="ETCUSDT")

# var4 = BinanceStrategyInit(UID=53, APIKey="JbI4I85tqB8g2iZKwYH6JttIfM27QrL0nv3GZz4nSIMxtx1oUGqItGBcGz1bCmct",
#                           SecretKey="4lpAEWax7rcca2jAD2VOis79ZxWgXHgq1sXUvTpbHOFr2zIpHZIOZ4KSuYF52H4g",
#                           symbol="ETCUSDT")
# var5 = BinanceStrategyInit(UID=14, APIKey="S4yGA6jIOekGqSuNzFBDSvlFwaArwLPSYWtj6LKgXUiaPbjmieCruKbDTOR7BEeI",
#                           SecretKey="gXhFYRZxBN8qUO1WVm7ShF6DYLpXHq91ywUgCPkaaPVHm59jILSEEMrcYt4sFyhD",
#                           symbol="ETCUSDT")
var5 = BinanceStrategyInit(UID=16, APIKey="GNnGyQu7dDVhEE1ysSgAG7LJ2MVDm0NEViCA4HGqUEc0n7SmB4uQwTgo29aDsPBU",
                          SecretKey="kJoKIEobqfQgJUaZb4VwBQi7cwSo0tKMyBAV8Gqrv1dpUNGImyawgrbwaGwBKKXo",
                          symbol="ETCUSDT")
# asyncio.run(var1.closeShort(100))
# asyncio.run(var2.closeShort(100))
# asyncio.run(var3.closeShort(100))
# asyncio.run(var4.closeShort(100))
# asyncio.run(var5.closeShort(100))

asyncio.run(var3.closeLong(100))